package com.owc.domain.vo.app;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author xiaom
 * @Date 2020/2/25 14:29
 * @Version 1.0.0
 * @Description <>
 **/
@Data
@ApiModel("购买产品入参")
public class BuyProductVo implements Serializable {

    @ApiModelProperty("购买金额")
    @NotNull(message = "please enter buy amount.")
    private BigDecimal buyAmount;

    @ApiModelProperty("产品ID")
    @NotNull(message = "please choose product.")
    private Long productId;

    /**
     * 购买人
     */
    @JsonIgnore
    private Long userId;

}
